/**
 * Created by yuyongzhen  <1640599564@qq.com>>.
 */
var tpl = require('./index.html');
var style = require('./index.css');

module.exports = function(mod, name) {
	mod.directive(name, function() {
		return {
			restrict: 'EA',
			replace: true,
			transclde: true,
			scope: {
				btnName: '=btnName'
			},
			template: tpl,
			link: function(scope, element, attrs) {

				scope.saveTopic = function() {
					console.log("in saveTopic");

					scope.$parent.saveEditSite();
				};

			}
		}
	});
}